package com.slipper.system.log.front;

import com.slipper.common.bo.Result;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

import com.slipper.system.api.log.bo.LoginLogBO;
import com.slipper.system.api.log.service.ILoginLogSv;
import com.slipper.system.log.service.LoginLogService;
import com.slipper.common.util.ResultUtil;

import java.util.List;

@RestController
public class LoginLogSv implements ILoginLogSv {
    @Resource
    private LoginLogService loginLogService;
    
    @Override
    public Result<LoginLogBO> queryBy(String id){
        return ResultUtil.successResult(loginLogService.queryBy(id));
    }
    
    @Override
    public Result<List<LoginLogBO>> queryPage(LoginLogBO bo){
        return ResultUtil.successResult(loginLogService.queryPage(bo));
    }
    
    @Override
    public Result<?> save(LoginLogBO bo){
        return ResultUtil.saveResult(loginLogService.save(bo));
    }
    
    @Override
    public Result<?> delete(LoginLogBO bo){
        return ResultUtil.deleteResult(loginLogService.delete(bo));
    }
}
